﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Clients
{
    public class ConstHelper
    {
        /// <summary>
        ///  抖音
        /// </summary>
        public static string douyin = "https://kuaiyinshi.com/api/dou-yin/videos/?user_id={0}&page={1}";
         
        /// <summary>
        /// 快手
        /// </summary>
        public static string kuaishou = "https://kuaiyinshi.com/api/kuai-shou/videos/?user_id={0}&page={1}";

        /// <summary>
        /// 火山
        /// </summary>
        public static string huoshan  = "https://kuaiyinshi.com/api/huo-shan/videos/?user_id={0}&page={1}";
         
        /// <summary>
        /// 美拍
        /// </summary>
        public static string meipai = "https://kuaiyinshi.com/api/mei-pai/videos/?user_id={0}&page={1}";

        public static string GetUrl(int index)
        {
            switch (index)
            {
                case 0:
                    return douyin;
                case 1:
                    return kuaishou;
                case 2:
                    return huoshan;
                case 3:
                    return meipai; 
            }
            return douyin;
        }

        public static string GetType(int index)
        {
            switch (index)
            {
                case 0:
                    return "douyin";
                case 1:
                    return "kuaishou";
                case 2:
                    return "huoshan";
                case 3:
                    return "meipai";
            }
            return "douyin";
        }
    }

}
